﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HTSwitchServerNamespace.Util
{
    class MensajesHTTP
    {
        public static String mensajeHTTPok()
        { 
            ///TODO
            /// CONTESTAR ESTE MENSAJE HTTP 
            /// 
            //HTTP/1.1 200 OK<CR><LF>
            //Date: Sun, 18 Oct 2009 08:56:53 GMT<CR><LF>
            //Server: Apache/2.2.14 (Win32)<CR><LF>
            //Last-Modified: Sat, 20 Nov 2004 07:16:26 GMT<CR><LF>
            //Accept-Ranges: bytes<CR><LF>
            //Content-Length: 47<CR><LF>
            //Connection: close<CR><LF>
            //Content-Type: application/json<LF>
            //X-Pad: avoid browser bug<CR><LF>
            //{"message":"Updated sucessfully.","code":"000"}

            string strMensaje="HTTP/1.1 200 OK\r\nDate: Sun, 18 Oct 2009 08:56:53 GMT\r\nServer: Apache/2.2.14 (Win32)\r\nLast-Modified: Sat, 20 Nov 2004 07:16:26 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 47\r\nConnection: close\r\nContent-Type: application/json\nX-Pad: avoid browser bug\r\n{\"message\":\"Updated sucessfully.\",\"code\":\"000\"}";
            
            return strMensaje;
        }
    }
}
